### This file will generate all tables and figures from raw data
### You can also do this manually by opening and running each script in the sequence below
### Make sure to insert your own path for 'PATH' below

# Generate 2018 data (set working directory to summer18_study folder)
setwd("PATH/summer18_study")
source("neg_bias_coding.R")
source("neg_bias_quality_checks.R")

# Generate 2019 data (set working directory to summer19_study folder)
setwd("PATH/summer19_study")
source("neg_bias19_coding.R")

# Generate 2020 data (set working directory to summer20_study folder)
setwd("PATH/summer20_study")
source("neg_bias20_coding.R")

# 2014 data was coded in Stata (see 'toubia_study' folder)

# Merge data sets (set working directory to top-level folder where neg_bias_data_merge.R is saved)
setwd("PATH")
source("neg_bias_data_merge.R")

# Analysis, Figures, Tables
source("neg_bias_analysis.R")
